package com.baj.ldap.util;

public enum ResponseEnums {

    SUCCESS(0, "SUCCESS"),
    PLATFORM_APP_NO_LOGIN(-5, "未登录"),
    ERROR(400, "ERROR"),
    BUSSINESS_ERROR(401, "业务异常"),
    INTERFACE_ERROR(402, "接口异常"),
    NO_LOGIN(410, "未登录"),
    UNKNOWN(500, "未知异常"),
    NETWORK_ERROR(501, "网络异常，请稍后再试"),
    TIMEOUT_ERROR(502, "连接超时，请稍后再试");

    public Integer code;
    public String desc;

    private ResponseEnums(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
